package com.basic.system.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * ClassName: SystemFileExMapper
 * Package: com.basic.system.dao.mapper
 * Description:
 *
 * @Author: Night
 * @Create: 2024/8/5 - 11:01
 * @Version: 1.0
 */
@Mapper
public interface SystemFileExMapper {
    @Update("UPDATE system_file SET is_enabled = 0 WHERE id = #{id}")
    int delById(@Param("id") Long id);

    @Update("UPDATE system_file SET is_enabled = 0 WHERE ref_id = #{id}")
    int delByRefId(@Param("id") Long id);

    int delByRefIds(Long[] ids);
}
